/* 公共部分 */
html,body{
    width: 100%;
    height: 100%;
}
ul, ol{
    list-style: none;
    padding: 0;
    margin: 0;
}
input{
    outline: none;
    border: none;
}
/* 大容器 */
.bg{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
/* 最上面的标题 */
h2{
    text-align: center;
}
/* 搜索部分 */
.search{
    position: relative;
}
.search form{
    display: flex;
    justify-content: space-around;
    padding: 0 15px;
    margin: 10px 0;
}
.search i{
    position: absolute;
    left: 40px;
    top: 16px;
}
.search form input:first-child{
    border-radius: 15px;
    height: 30px;
    flex: 1;
    margin: 0 10px;
    padding-left: 40px;
    border: 1px solid #eee;
}
.search form input:last-child{
    color: rgb(53, 226, 226);
    background-color: transparent;
    font-size: 16px;
    font-weight: bold;
}
/* 中间内容部分 */
.wrap{
    flex: 1;
    display: flex;
    justify-content: space-between;
}
/* 左侧菜单栏 */
.sidebar{
    width: 100px;
    margin-left: 10px;
}
.sidebar ul{
    overflow-y: auto;
    background-color: #fff;
    font-size: 14px;
}
.sidebar ul li{
    height: 50px;
    line-height: 50px;
    padding-left: 10px;
}
/* 右边商品部分 */
.content{
    padding: 0 10px;
    background-color: #fff;
}
.content .title{
    display: flex;
    height: 50px;
    line-height: 50px;
    justify-content: space-between;
    padding-right: 10px;
}
.content .title span i{
    margin-left: 4px;
}
.content ol{
    overflow-y: scroll;
}
.content ol li{
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}
.content ol li span{
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
}
.content ol li input{
    height: 20px;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 10px;
    margin-right: 5px;
    background-color: #0ff;
    border-radius: 4px;
}
.content ol li img{
    width: 80px;
    height: 80px;
    margin-right: 8px;
}
.content ol li b{
    font-weight: normal;
    background-color: #f00;
    color: #fff;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    font-size: 8px;
    text-align: center;
    line-height: 10px;
    padding: 2px;
    position: absolute;
    bottom: 12px;
    right: 0;
    display: none;
}
/* 购物车 */
.cart{
    display: none;
    position: absolute;
    bottom: 62px;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    justify-content: space-between;
    background-color: #eee;
    height: 50px;
    align-items: center;
    border-radius: 25px;
}
.cart .carticon{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    line-height: 50px;
    text-align: center;
    border: 1px solid #eee;
}
.cart .carticon i.iconfont{
    font-size: 30px;
    color: #0ff;
}
.cart .carticon b{
    font-size: 8px;
    width: 10px;
    height: 10px;
    position: absolute;
    right: -5px;
    top: 0;
    background-color: #0ff;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 8px;
    line-height: 10px;
    padding: 2px;
    font-weight: normal;
}
.cart .price{
    font-size: 20px;
}
.cart .settle{
    width: 120px;
    height: 50px;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    background-color: #0ff;
    border-radius: 25px;
}
.cart .settle a{
    text-decoration: none;
    color: #fff;
}
/* 底部 */
.footer{
    position: sticky;
    left: 0;
    bottom: 0;
    display: flex;
    background-color: #fff;
    height: 60px;
    justify-content: space-around;
}
.footer div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}
.footer div i.iconfont{
    font-size: 20px;
}
/* 商品详情 */
.mask{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;    
    top: 0;
    background-color: rgba(0,0,0,.8);
    display: none;
}
.mask .detail{
    width: 60%;
    height: 60%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: #fff;
    border-radius: 10px;
}
.mask .detail img{
    width: 100%;
    height: 40%;
    border-radius: 10px;
}
.mask .detail h4{
    padding: 0;
    margin: 10px 0 0 0;
    text-align: center;
}
.mask .detail>p{
    padding: 0 0 0 10px;
    margin: 0;
    font-size: 12px;
    color: #999;
}
.spec{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10px;
}
.spec p,.kind p{
    border: 1px solid #999;
    display: inline-block;
    color: #333;
    padding: 4px 15px;
    margin: 5px 0;
    font-size: 12px;
}
.spec p.active,.kind p.active{
    border: 1px solid #0ff;
    color: #0ff;
}
.kind{
    padding-left: 10px;
}
.kind p{
    margin-right: 4px;
}
.bottom{
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
.bottom span:nth-child(2){
    flex: 1;
    font-size: 20px;
    line-height: 26px;
}
.bottom span:nth-child(1){
    font-size: 12px;
    line-height: 30px;
}
.bottom span:nth-child(3){
    background-color: #0ff;
    position: relative;
    top: -2px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    padding: 2px 5px;
    color: #fff;
}
.mask .detail>span{
    background-color: transparent;
    color: #fff;
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 24px;
    font-weight: normal;
}